package br.fbv.anotaFacil.view;

import br.fbv.anotaFacil.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

public class AppLista extends Activity {
	public ListView lista;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu);
		
//		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
//				android.R.layout.simple_list_item_1, contatos);
//		lista = (ListView) findViewById(R.id.listView1);
//		lista.setAdapter(adapter);
//		lista.setOnItemClickListener(new OnItemClickListener() {
//			public void onItemClick(AdapterView arg0, View arg1, int arg2,
//					long arg3) {
//				if (lista.getSelectedItem() != null) {
//					AlertDialog.Builder dialogo = new AlertDialog.Builder(
//							AppLista.this);
//					dialogo.setTitle("Contato selecionado");
//					dialogo.setMessage(lista.getSelectedItem().toString());
//					dialogo.setNeutralButton("OK", null);
//					dialogo.show();
//				}
//			}
//		});
		
		
	}

	static final String[] contatos = new String[] { "Alline", "Lucas",
			"Rafael", "Gabriela", "Silvana" };
}